home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 718 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. From: Michael Smith <miff@apanix.apana.org.au>
  2. Subject: Periodic task functions...
  3. Date: Fri, 17 Dec 1993 13:14:18 -17634834 (DST)
  4. In-Reply-To: <9312161531.AA22754@suntopo.matups.fr> from "Thierry Bousch" at Dec 16, 93 04:31:30 pm
  5.  
  6. >Having a unique "update" process would be a Good Thing (in terms of
  7. >performance) not only for file-systems, but also for device drivers; In
  8. >both cases, there are tasks which must be done (checked) periodically,
  9. >whether the device driver is called or not.  In minixfs and modm0dev,
  10. >this is accomplished by an auxiliary daemon process: this causes
  11. >significant overhead, and even more importantly, this process runs in
  12. >non-kernel mode, which forbids some functions like (*kernel->wake)()
  13. >which would be extremely handy. 
  14.  
  15. And things like TCP, and for that matter almost every communications
  16. protocol require a regular cleanout kicking. (There's no point in 
  17. registering a timeout for each and every connection you have open)
  18.  
  19. >It would be nice to have a supplementary kernel function -- let's say
  20. >add_periodic_task(short period, void (*func)()) -- to register function
  21. >"func" to be executed _in kernel mode_ every "period" milliseconds. 
  22.  
  23. Sounds pretty handy, although it'd be a real time eater unless you keep 
  24. the granularity pretty coarse.  I think that just having two lists,
  25. one on (say) 5ms (200Hz) and the other say 500ms (2Hz) would probably cover
  26. 99.9% of the requirements, and be much lighter on the overhead.
  27.  
  28. >Any comments about this?
  29.  
  30. Yeah, please guys, for every add_* function, make sure there's a 
  31. remove_* function 8)
  32.  
  33. >Thierry. 
  34.  
  35. -- 
  36. # mike smith : miff@apanix.apana.org.au - Silicon grease monkey        #
  37. # "The question 'why are the fundamental laws of nature mathematical'  #
  38. # then invites the trivial response 'because we define as fundamental  #
  39. # those laws which are mathematical'". Paul Davies, _The_Mind_of_God_. #
  40.